package com.myhome.money.spring.lifecycle.listenter;

import org.springframework.context.ApplicationEvent;

/**
 * @author Rod
 */
public class MyEvent extends ApplicationEvent {

    private String msg;

    public MyEvent(String source) {
        super(source);
        this.msg = source;
    }

    public void myEventTest(){
        System.out.println("********My event**************");
        System.out.println(msg);
        System.out.println("*******************************");
    }

}
